import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
import  { User } from '../../entities/User.entity';

export type UserDtoOptions = Partial<{ isActive: boolean }>;

export class UserDto  {


  @ApiPropertyOptional()
  name?: string;

  @ApiProperty()
  cityId: number;

  @ApiPropertyOptional()
  sex: number;

  @ApiPropertyOptional()
  phone?: string;

  @ApiPropertyOptional()
  email?: string;

  @ApiPropertyOptional()
  password?: string;

  @ApiPropertyOptional()
  isActive?: boolean;

}
 
